<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .a {
            text-align: center;
        }

        /* 
            伪对象操作符
            before和after  必须结合content属性来使用   
            相当于是行内标签(不支持宽高)
        */

        .a:after {
            content: "";
            display: block;
            width: 30px;
            height: 2px;
            background-color: #f00;
            margin: auto;
        }


        li {
            float: left;
            margin-right: 20px;
        }

        li:after {
            content: "|";
            margin-left: 20px;
        }


        li:last-child:after {
            content: "";
            /* content: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/d0c515086acb3c3a3e976ad20901aac5.jpg?w=632&h=340); */
        }
    </style>
</head>

<body>

    <!-- 
        伪元素本质上类似于一个标签
     -->

    <div class="a">
        <h3>标题</h3>
        <p>啊啊啊啊啊啊啊啊啊啊</p>
        <!-- <div></div> -->
    </div>



    <ul>
        <li>
            <a href="">小米</a>
        </li>
        <li>
            <a href="">小米</a>
        </li>
        <li>
            <a href="">小米</a>
        </li>
        <li>
            <a href="">小米</a>
        </li>

    </ul>

</body>

</html>